Platform Explorer / Nuxeo Platform 2021.50

Component org.nuxeo.ecm.collections.core.versioning.policies

Requirements

Resolution Order

300
The resolution order represents the order in which this component has been resolved by the Nuxeo Runtime framework.
You can influence this order by adding "require" tags in your component declaration, to make sure it is resolved after another component.

Contributions

XML Source

<?xml version="1.0"?>
<component name="org.nuxeo.ecm.collections.core.versioning.policies" version="1.0">

  <require>org.nuxeo.ecm.platform.el.service</require>

  <extension target="org.nuxeo.ecm.core.api.versioning.VersioningService" point="policies">
    <!-- Range [1, 10] for order is reserved for Nuxeo System Policies-->
    <!-- See https://doc.nuxeo.com/nxdoc/versioning/#-anchor-versioning-policies-versioning-policies-and-filters -->
    <policy id="no-versioning-for-collection-before-update" beforeUpdate="true" increment="NONE" order="2">
      <filter-id>collection-actions</filter-id>
    </policy>
    <policy id="no-versioning-for-collection-after-update" beforeUpdate="false" increment="NONE" order="2">
      <filter-id>collection-actions</filter-id>
    </policy>
  </extension>

  <extension target="org.nuxeo.ecm.core.api.versioning.VersioningService" point="filters">
    <filter id="collection-actions" class="org.nuxeo.ecm.collections.core.versioning.NoVersioningCollectionPolicyFilter" />
  </extension>

</component>